package com.itee.monitor.codec;

import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;

public class NodeCodecFactory implements ProtocolCodecFactory {

	private ProtocolEncoder encoder;

	private final ProtocolDecoder decoder;

	public NodeCodecFactory() {
		decoder = new NodeDecoder();
	}

    @Override
	public ProtocolDecoder getDecoder(IoSession session) throws Exception {
		return decoder;
	}

    @Override
	public ProtocolEncoder getEncoder(IoSession session) throws Exception {
		return null;
	}
}
